package com.trainfinder.requestor;

public class ExtractSessionID implements Extractor {

	/**
	 * @param args
	 */
	public String extract(String data) {
		String result = "";
		int start = data.indexOf("ERSPRDSession=");

		if (start != -1) {
			int end = data.indexOf(";", start);

			if (end != -1) {
				result = data.substring(start, end);
			}

		}
		return result;
	}
}
